Optimal. Leaf size=56 \[ -\frac {2 a \cos (c+d x)}{3 d \sqrt {a+a \sin (c+d x)}}-\frac {2 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2830, 2725}
\begin {gather*} -\frac {2 \cos (c+d x) \sqrt {a \sin (c+d x)+a}}{3 d}-\frac {2 a \cos (c+d x)}{3 d \sqrt {a \sin (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2830
Rubi steps
\begin {align*} \int \sin (c+d x) \sqrt {a+a \sin (c+d x)} \, dx &=-\frac {2 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{3 d}+\frac {1}{3} \int \sqrt {a+a \sin (c+d x)} \, dx\\ &=-\frac {2 a \cos (c+d x)}{3 d \sqrt {a+a \sin (c+d x)}}-\frac {2 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 81, normalized size = 1.45 \begin {gather*} -\frac {\left (3 \cos \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {3}{2} (c+d x)\right )-4 \sin ^3\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {a (1+\sin (c+d x))}}{3 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.77, size = 51, normalized size = 0.91
method | result | size |
default | \(\frac {2 \left (1+\sin \left (d x +c \right )\right ) a \left (\sin \left (d x +c \right )-1\right ) \left (\sin \left (d x +c \right )+2\right )}{3 \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(51\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 67, normalized size = 1.20 \begin {gather*} -\frac {2 \, {\left (\cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right ) - 1\right )} \sin \left (d x + c\right ) + 2 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{3 \, {\left (d \cos \left (d x + c\right ) + d \sin \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \left (\sin {\left (c + d x \right )} + 1\right )} \sin {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.60, size = 65, normalized size = 1.16 \begin {gather*} \frac {\sqrt {2} {\left (3 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {3}{4} \, \pi + \frac {3}{2} \, d x + \frac {3}{2} \, c\right )\right )} \sqrt {a}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \sin \left (c+d\,x\right )\,\sqrt {a+a\,\sin \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________